package com.base.widget.cobe.ptr;

import android.view.View;

public interface PtrHandler {

    /**
     * Check can do refresh or not. For example the content is empty or the first child is in view.
     * <p/>
     * {@link in.srain.cube.views.ptr.PtrDefaultHandler#checkContentCanBePulledDown}
     */
    public boolean checkCanDoRefresh(final PtrFrameLayout frame, final View content, final View header);

    /**
     * When refresh begin
     * 
     * @param frame
     * @param byUser 是否是用户手动下拉刷新
     */
    public void onRefreshBegin(final PtrFrameLayout frame,boolean byUser);
}